﻿using System.Data;

namespace TfsReports.Web.Models
{
    /// <summary>
    /// BuildStatus
    /// </summary>
    public class BuildStatus : Entity
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildStatus"/> class.
        /// </summary>
        public BuildStatus() { }

        /// <summary>
        /// Initializes a new instance of the <see cref="BuildStatus"/> class.
        /// </summary>
        /// <param name="dataRecord">The data record.</param>
        public BuildStatus(IDataRecord dataRecord)
        {
            Id = dataRecord.GetInt32(dataRecord.GetOrdinal("BuildStatusId"));
            Title = dataRecord.GetString(dataRecord.GetOrdinal("BuildStatus"));
        }
    }
}
